﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SubVersionOne
{
    [Serializable()]
    public class VersionOneCredentials : ViewModelBase
    {

        public VersionOneCredentials()
        {
            this.UserName = String.Empty; 
        }

        private string url="https://www9.v1host.com/";
        private string uname;
        private string pwd;
        private bool auth;

        public string ApplicationUrl
        {
            get
            {
                return url;
            }
            set
            {
                this.url = value;
                this.RaisePropertyChanged("ApplicationUrl");
            }
        }
        public string UserName
        {
            get
            {
                return uname;
            }
            set
            {
                this.uname = value;
                this.RaisePropertyChanged("UserName");
            }
        }
        public string Password
        {
            get
            {
                return pwd;
            }
            set
            {
                this.pwd = value;
                this.RaisePropertyChanged("Password");
            }
        }
        public bool WindowsAuth
        {
            get
            {
                return auth;
            }
            set
            {
                this.auth = value;
                this.RaisePropertyChanged("WindowsAuth");
            }
        }
    }
}
